<span page-title>{{ 'Register a Content Host' | translate }}</span>

<section data-extend-template="layouts/details-page-with-breadcrumbs.html">

  <header data-block="header">
    <h2 translate>Content Host Registration</h2>
  </header>

  <div data-block="content">
    <p translate>To register a content host to this server, follow these steps.</p>
    <p bst-alert="info" >
      <span translate>
        These instructions will be removed in a future release. NEW: To register a content host without following these manual steps, see <a href="https://{{ katelloHostname }}/hosts/register">Register Host</a>
      </span>
      </p>
    <ol>
      <li>
        <p>Select an Operating System:</p>
        <p><select ng-init="selectedUserOs = 'client'" ng-model="selectedUserOs">
          <option value="client">CentOS/RHEL</option>
          <option value="deb-client">Debian/Ubuntu</option>
          <option value="oracle-client">OracleLinux</option>
          <option value="sles-client">SLES/Suse</option>
        </select></p>
      </li>
      <li ng-hide="noCapsulesFound || selectedUserOs == 'deb-client'">
        <p translate>Select a Content Source:</p>
        <p><select ng-model="selectedCapsule" ng-options="capsule.name for capsule in capsules.results"></select></p>
      </li>
      <li ng-hide="selectedUserOs === 'deb-client'">
        <p translate>Install the pre-built bootstrap RPM:</p>
        <pre><code>curl --insecure --output {{ consumerCertRPM }} https://{{ noCapsulesFound ? katelloHostname : hostname(selectedCapsule.url) }}/pub/{{ consumerCertRPM }}<br />{{(selectedUserOs === 'sles-client') ? 'zypper' : 'yum' }} localinstall {{ consumerCertRPM }} </code></pre>
      </li>

      <register-os-client user-os="selectedUserOs"></register-os-client>
    </ol>
  </div>
</section>
